/**
 * 子模块路由
 * dlq
 */

var router = function($urlRouterProvider, $stateProvider){

    $stateProvider

       //企业审核
    .state('app.xlcompany_check', {
        url: '/xlcompany_check.html',
        views: {
            'main@' : {
                controller : 'xlcompany_check',
                template: require('./views/xlcompany_check.html'),
            }
        },
        resolve:{
            formconfig : function(formservice){
                return formservice.formconfig();
            },
        }
        
      })
       //企业注册
      .state('app.register', {
        url: '/register.html',
        views: {
            'main@' : {
                controller : 'register',
                template: require('./views/register.html'),
            }
        },
        resolve:{
            formconfig : function(formservice){
                return formservice.formconfig();
            },
        }
        
      })
      //完善企业信息
      .state('app.completeinfo', {
        url: '/completeinfo.html/:company_id',
        views: {
            'main@' : {
                controller : 'completeinfo',
                template: require('./views/completeinfo.html'),
            }
        },
        resolve:{
            formconfig : function(formservice){
                return formservice.formconfig();
            },
        }
        
      })
      //通知公告
      .state('app.xlnotice', {
        url: '/xlnotice.html',
        views: {
            'main@' : {
                controller : 'xlnotice',
                template: require('./views/xlnotice.html'),
            }
        },
        resolve:{
        }
        
      })

       //审核管理
      .state('app.xlexamine', { 
        url: '/xlexamine.html',
        views: {
            'main@' : {
                controller : 'xlexamine',
                template: require('./views/xlexamine.html'),
                }
        },
        resolve:{
        }
        
      })
      //企业项目列表
      .state('app.xlproject_list', {
        url: '/xlproject_list.html',
        views: {
            'main@' : {
                controller : 'xlproject_list',
                template: require('./views/xlproject_list.html'),
            }
        },
        resolve:{
        }
        
      })

      //专家
       //项目查询列表
      .state('app.xlprojectsearch', { 
        url: '/xlprojectsearch.html',
        views: {
            'main@' : {
                controller : 'xlprojectsearch',
                template: require('./views/xlprojectsearch.html'),
                }
        },
        resolve:{
        }
        
      })

         .state('app.xlcreateUserInfo', { 
        url: '/xlcreateUserInfo.html',
        views: {
            'main@' : {
                controller : 'xlcreateUserInfo',
                template: require('./views/xlcreateUserInfo.html'),
                }
        },
        resolve:{
        }
        
      })   
            //专家
       //项目查询列表
      .state('app.xlprojectsearchinfo', { 
        url: '/xlprojectsearchinfo.html',
        views: {
            'main@' : {
                controller : 'xlprojectsearchinfo',
                template: require('./views/xlprojectsearchinfo.html'),
                }
        },
        resolve:{
        }
        
      })
      
      //专家列表
      .state('app.xlexpertlist', {
        url: '/xlexpertlist.html',
        views: {
            'main@' : {
                controller : 'xlexpertlist',
                template: require('./views/xlexpertlist.html'),
            }
        },
        resolve:{
        }
        
      })

    //专家推荐
      .state('app.xlexpertrec', {
        url: '/xlexpertrec.html',
        views: {
            'main@' : {
                controller : 'xlexpertrec',
                template: require('./views/xlexpertrec.html'),
                }
        },
        resolve:{
        }
        
      })
      //项目复核
      .state('app.xlproject_review', { 
        url: '/xlproject_review.html',
        views: {
            'main@' : {
                controller : 'xlproject_review',
                template: require('./views/xlproject_review.html'),
                }
        },
        resolve:{
        }
        
      })


      //项目推荐
      .state('app.project_recommendation', { 
        url: '/project_recommendation.html',
        views: {
            'main@' : {
                controller : 'project_recommendation',
                template: require('./views/project_recommendation.html'),
            }
        },
        resolve:{
        }
        
      })

      //资料管理
      .state('app.xlpolicieRegulationList', { 
        url: '/xlpolicieRegulationList.html',
        views: {
            'main@' : {
                controller : 'xlpolicieRegulationList',
                template: require('./views/xlpolicieRegulationList.html'),
            }
        },
        resolve:{
        }
      })

      //咨询管理
      .state('app.viewConsult', { 
        url: '/viewConsult.html',
        views: {
            'main@' : {
                controller : 'viewConsult',
                template: require('./views/viewConsult.html'),
            }
        },
        resolve:{
        }
      })      

      //客服咨询管理
      .state('app.reviewConsult', { 
        url: '/reviewConsult.html',
        views: {
            'main@' : {
                controller : 'reviewConsult',
                template: require('./views/reviewConsult.html'),
            }
        },
        resolve:{
        }
      })         
      //政策管理
      .state('app.xlpolicieRegulationLists', { 
        url: '/xlpolicieRegulationLists.html',
        views: {
            'main@' : {
                controller : 'xlpolicieRegulationLists',
                template: require('./views/xlpolicieRegulationLists.html'),
            }
        },
        resolve:{
        }
      })

      //各级观看资料
      .state('app.xlenterprisePolicieList', { 
        url: '/xlenterprisePolicieList.html',
        views: {
            'main@' : {
                controller : 'xlenterprisePolicieList',
                template: require('./views/xlenterprisePolicieList.html'),
            }
        },
        resolve:{
        }
      })
      //各级观看政策
      .state('app.xlenterprisePolicieLists', { 
        url: '/xlenterprisePolicieLists.html',
        views: {
            'main@' : {
                controller : 'xlenterprisePolicieLists',
                template: require('./views/xlenterprisePolicieLists.html'),
            }
        },
        resolve:{
        }
      })
      //添加资料管理
      .state('app.addConsult', { 
        url: '/addConsult.html',
        views: {
            'main@' : {
                controller : 'addConsult',
                template: require('./views/addConsult.html'),
            }
        },
        resolve:{
        }
      })
      //客服咨询回复
      .state('app.updateConsult', { 
        url: '/updateConsult.html',
        views: {
            'main@' : {
                controller : 'updateConsult',
                template: require('./views/updateConsult.html'),
            }
        },
        resolve:{
        }
      })

      //添加资料管理
      .state('app.addPolicieRegulation', { 
        url: '/addPolicieRegulation.html',
        views: {
            'main@' : {
                controller : 'addPolicieRegulation',
                template: require('./views/addPolicieRegulation.html'),
            }
        },
        resolve:{
        }
      })
      //添加政策管理
      .state('app.addPolicieRegulations', { 
        url: '/addPolicieRegulations.html',
        views: {
            'main@' : {
                controller : 'addPolicieRegulations',
                template: require('./views/addPolicieRegulations.html'),
            }
        },
        resolve:{
        }
      })
      //项目评审
      .state('app.xlproject_appraisal', { 
        url: '/xlproject_appraisal.html',
        views: {
            'main@' : {
                controller : 'xlproject_appraisal',
                template: require('./views/xlproject_appraisal.html'),
            }
        },
        resolve:{
        }
        
      })

      //专家设定
      .state('app.expert_setting', { 
        url: '/xlexpert_setting.html/:project_code/:set',
        views: {
            'main@' : {
                controller : 'xlexpert_setting',
                template: require('./views/xlexpert_setting.html'),
            }
        },
        resolve:{
        }
        
      })

       //专家设定
      .state('app.project_acceptance', { 
        url: '/project_acceptance.html',
        views: {
            'main@' : {
                controller : 'project_acceptance',
                template: require('./views/project_acceptance.html'), 
            }
        },
        resolve:{
        }
        
      })

      //专家立项
      .state('app.project_confirmation', { 
        url: '/project_confirmation.html',
        views: {
            'main@' : {
                controller : 'project_confirmation',
                template: require('./views/project_confirmation.html'), 
            }
        },
        resolve:{
        }
        
      })

      //提报进度
      .state('app.reporting_progress', { 
        url: '/reporting_progress.html', 
        views: {
            'main@' : {
                controller : 'reporting_progress',
                template: require('./views/reporting_progress.html'), 
            }
        },
        resolve:{
        }
        
      })
      //专家评审
      .state('app.xlexpert_review_list', { 
        url: '/xlexpert_review_list.html',
        views: {
            'main@' : {
                controller : 'xlexpert_review_list',
                template: require('./views/xlexpert_review_list.html'), 
            }
        },
        resolve:{
        }
        
      })

      //入库专家
      .state('app.xlwarehousing_expert', { 
        url: '/xlwarehousing_expert.html',  
        views: {
            'main@' : {
                controller : 'xlwarehousing_expert',
                template: require('./views/xlwarehousing_expert.html'), 
            }
        },
        resolve:{
        }
        
      })

       //专家评审
      .state('app.xlexpert_review', {  
        url: '/xlexpert_review.html',  
        views: {
            'main@' : {
                controller : 'xlexpert_review',
                template: require('./views/xlexpert_review.html'), 
            }
        },
        resolve:{
        }
        
      })

      //专家评估
      .state('app.expert_evaluation', {  // setting_expert
        url: '/expert_evaluation.html',  
        views: {
            'main@' : {
                controller : 'expert_evaluation',
                template: require('./views/expert_evaluation.html'), 
            }
        },
        resolve:{
        }
        
      })


      //区县审核列表
      .state('app.xldistinct_review_list', { 
        url: '/xldistinct_review_list.html',
        views: {
            'main@' : {
                controller : 'xldistinct_review_list',
                template: require('./views/xldistinct_review_list.html'), 
            }
        },
        resolve:{
        }
        
      })

      //组委办上传pdf文件
      .state('app.office_file', {   //expert_first
        url: '/office_file.html',  
        views: {
            'main@' : {
                controller : 'office_file',
                template: require('./views/office_file.html'), 
            }
        },
        resolve:{
        }
        
      })

      //专家优先上传评分
      .state('app.expert_first', {  
        url: '/expert_first.html',  
        views: {
            'main@' : {
                controller : 'expert_first',
                template: require('./views/expert_first.html'), 
            }
        },
        resolve:{
        }
        
      })

      //旅游局公告&&创建项目
      .state('app.xlnoticeProject', {  
        url: '/xlnoticeProject.html',  
        views: {
            'main@' : {
                controller : 'xlnoticeProject',
                template: require('./views/xlnoticeProject.html'), 
            }
        },
        resolve:{
        }
        
      })
      //旅游局项目指南
      .state('app.projectGuide', {  
        url: '/projectGuide.html',  
        views: {
            'main@' : {
                controller : 'projectGuide',
                template: require('./views/projectGuide.html'), 
            }
        },
        resolve:{
        }
        
      })
      //创建项目指南
      .state('app.create_guide', {  
        url: '/create_guide.html',  
        views: {
            'main@' : {
                controller : 'create_guide',
                template: require('./views/create_guide.html'), 
            }
        },
        resolve:{
        }
        
      })







     

};

module.exports = router;